assigned address of returned value to pointer