removed memset functions