add check for root