added function to echo properties