modified qdcoder