fixed: confused type with type()