add printAddr method