added assertion in case fewer resources were available
removed extraineous file