checking what is going into the name variable