first iteration with resources