added a limit to the preloader