Where does `$arg` come from? Didn't you mean to use the function argument?