fixed compiler error from commenting out sprintf