added plot lock