adding changes to make plates save only once