adding props.data
allow for data prop