finish level shifting for digital lines