added object for encoding