For some reason name var has a getName function in it, need to use a different name