check query parameter.