change itoa to snfrintf