Having trouble passing a name variable