grabbed from encoding