removed string.h dependency