temporarily adding mode checker