fixed error in abundance table function