q condition added sort of