separate helper functions into namespaces