code to help find dups etc. in mpc