fixed extra \n issue

changed println to print