using memset instead of bzero