refactor lookat