attribute template work