unique residue number is now be found automaticaly if not already unique