fix #1: creation of q dictionary with values represented as table