change type of writing hex numbers