making sure component base roles are only acting on the current on in the loop