outlined functions for output files, defined ligands