require optimize is working