removed diagnostic printf