changed _kmq declaration