adding else for no resources