sets output variables to null. fixes undefined variable notices