Cleaning up dollar vars

typo fix

removing unneeded var declaration

changed ${ vars

changed local vars to $, not ${