fixed bug for printing out pointer. It is ok to print out pointer's address now.