working on parsing to applicative form