formatter
boolean for method add
index for type set