make template resulable