problem with statent: if (i < j)