add ignore to encode function