deal with type 4