correcting for function argument parsing error