removed extra comments and console outputs