moved method to the bottom of the class