Finding missing marks and correcting them with references marks