add mathod of print macro