can now pass object as datapoint