added decoding, obviously not working