troubleshot address function formatting