changed to q instead of Q