don't define this inside the changes function