end doesn't exist - changed var to stop