isTerminal for faster lookup
implemented bounding