adding back in sprintf