add missing semi-colon #3
rm var before variable already defined (parameter of function)