avoid returning undefined from parseData