trying with a pointer to the data