use helper functions.