adding in resources logic