added print statements for testing