added checking for incorrect override/overload