added output function for pymol