removed 'for loop initializing NULL values'