added verification if no data is inserted for masks