some modifications to inorder checks