get correct mask