added distance check method to peptide