made product template optional