commented out some console logs to make easier to see what is happening