added new valueparser as static class.
optimized algorithm