made helper functions private