removed returnData argument