last version producing unnecessary plots