added print outs for testing