added linear mask