added missing return to prototype