How kotlyars works