fixing namespace in object creation