dynamically set attributes