parseData now in constructor