fixed change function