update solution for 1807