make methods react to changes