improving inpainting & recognize processes