much better use of PDL + work on sum of elastic mask