removed string casts from templstes