employing sprintf