returned variable sting to free it from the function