itoa replaced by snprintf