check syndromes first
Merge pull request #18 from sycy600/check_syndromes_first

check syndromes first