fixed digital output wrong order