modify helper functions