implemented qr with separate executable