update(speed matrix added)