update it and make it work with the updated template