You must follow the NOL rules (that are confusing at best) and recompute the 2021 return to add the NOL then follow the carry forward of the allowed NOL amounts. This is not a simple calculation so I highly recommend you seek professional assistance with this issue.