removed few printf's and fixed a bug inadvertently introduced in my last commit