implements getArgument
refactores parseValue