try to fix a stack too deep error