partial progress on simple LK algorithm