removed usage of namespace keyword of ecs and replaced with function