for loop deleted made for performance test, removed unnecessary define