debugged the namespace bug