added typeof test of body to method override