solving require bug