renamed a few functions to make it sound better