old pc is saved if current page changes. Removes one assignment in loop