moved the tasep codes to C