updated check_raid