final commit in business logic

improve global, do pseudo, refactoring local.