removing extraneous sprintf code