removing fprintf

removing fprintf