var statements updated when applicable