simplify address printing function