debugged the pb