update without creating matrix