moved all to templates