adds method field