cleaned up template - total params