use mask if available