working version to display ligand structure