Not working correctly for print out the name