fix format string
remove duplicate class definition