modify method of require