added single template and loop-single