added comment to perform batch operation in loop