add encoder functions
add //TO BE DONE
...