Updating translation matrix