Changed return in Object function