added debug check for printf