changed an sprintf to snprintf