added a safety constraint in case someone else starts modifying same page set