improved performance of the resolve function