using q library