commenting as I read code that is unclear.