added comments specifying exactly where bug is