cleared template code