make helper functions