helper functions.