removed helper functions