refactored, changed variables names to russian, sometimes to make something sane, something insane should be done