delete stacksize and improve memory work