sharing some quants codes