modified functions that returned certain things to be mutators