changed assignment length to memset