adding printr to test to figure out problem