updating the tranfert matrix