almost done encoders