added loop through sectors