added plotmodes from lost code