edited out print statements