slick implementation improvement