add encoding to models & annotate