it was trivial; variation of LIS