removed duplicate print statements