removed looping through resources