adding helper functions for header