entity editing gfunctions