Again a new improvement for the tele extraction. this time a better filter and a refactored version of the function