added print out method