turn q into proper class