replace bool to Mq4Double