tuple -> encodign