implementing passchk
merging