replaced bzero with memset