qualificatoin algorithm added