change unit method