refactor by use for loop