memory leaks fixed, linear elastostacis