* removed modulo operators just in incrementing i and j