changed loop dividend