made the array_to_string function work