stored in an array instead of tree structure