added getData option to collection