changed the signature and implementation of the method result