encode only true value