convert to mask the overlay