use node.right instead of node.bounds.maxX