added transportation to algorithm