reorganzining plotting scripts