decode in the right place