add custom helper functions