using wmemset, should fix passage bugs