linear mask retention

unit test