using encoding type of system