added comments to mark the places where problems are