initializing array before use