refactor osmosis calls into method, part 1: working
refactor osmosis calls into method, part 2: working
refactor osmosis calls into method, part 2.1: working
refactor osmosis calls into method, last part : working + added count of w+r