function to compare new school scan with selectedAP works