modified 'snprintf' into 'sprintf'