fixed the change method