added a bunch of more encoding statements