missing use flag, undefined variable fix