start refactor for function regularParseToAuto