removing pdb, changing nervous function call into an assert