minor fixs & memory exprs