is to == and added more debug stuff
commented out debug stuff