had argument order to memset backwards