prints out but not correctly