added type encoding
update