fixed null pointer exception
took out print statements