connect f-ction changed