struct type changed to const