cleaned up some minor bugs wrt. recording the it value