modify method content