removing printf, what Fred suggested doesnt work for me