changed column type and name for type_id