sampling from ligand file