increasing the processing speed for calculating resolution factor