throwing in resources