reducing the time of finding variables