remove debugging to see if it eliminates problems