corrected formatting, removed unncessary print statements