remove sprintf dependency