functions checked, algorithm to check