added residues plot