prevent notice "undefined variable"