moved from snprintf to sprintf (because sn doesn't exist)