A new doping strategy for halide perovskite based solar cells