class helper functions