removed hardcoded call stack limit