working on frontier
reached an initial version of frontier