a little better positional lookup
forgot self
fixed a bug and improved positional lookup