this doesn't work for a generator