implemented checkChanged method