setting default for q