reduce used memory