passes reference to leave and hungry so we can send it back to the controller