improve require clause