use attribute instead of hard-coded key