updated header query