added templating functionality for all attributes