removed most of debugging messages