added some code for coder/decoder