replace false with nil