Refactored codes inside for loop