defects diagnosis