passing in wrong result prototype