removed use of printf