modifide the abundance correction code. For some reason linalg.matrix_rank didn't run on the server, so I had to change the logic slightly