moved internal method to private section of class