added change logic