added stuff for quantum