near first test
near naive implementation