fixed definitions
added frontier finder