broke down and added a last-xy variable. which is not unreasonable.