changed pointer to value