Understanding hybrid halide perovskite thin layers to improv