adding the qualifier code I wrote from work. Good thing Im out of the competition now though :\