a better way to deal with unused variables