corrections to transferto code