trial and error templateing