fixed require as suggested on review