made helper function in test public