added warning when variable changes