use methodBody instead of undeclared variable