fixed chosing of resources