updated the attribute reflector's logic. big linq statement is more readable than nested foreaches.