added print statements for testing purposes