added resource selector to a inline