sprintf used in handle end