modification for to binsing site distance
code for calculating residue depth