Write method in scoreboard throws an error

I have created a scoreboard and instead of implementing function void write() I have renamed it as write_mon() . UVM throws an error xmelab: *E,CUVUNF Hierarchical name component lookup failed for ‘write’ at ‘uvm_pkg’, detected while elaborating:

I didn’t had these issues earlier while defining my function names instead of write . Any sggestions

In reply to verific_engi:

In the standard approach you cannot change the name from write to anything else.
If you are using one of the macros:
`uvm_*_imp_decl(SFX) you can change the name as you did.
In your case SFX would be ‘_mon’.

In reply to chr_sue:

Thanks chr !! Yeah did that in the declaration and it solved the problem