use win_info in alloc_mem
use win_allocate instead of win_create