removed diagnostic print statements