add small fix for cases and tax functions