remove defs
remove unused parameter; set default tint value