fixing const isssues with array initializing