helper functions namespace issue