removed many debugging outputs