implementing parsing of values