template was a bad idea