add a function in the script to group distal oxygens parameters for different domains