matching function removefield2 for createfield2
removed debug code