fixed not using dynamic declaration in static value