trying to refactor querybuilder, only one must be used