make it so that when the minimum is zero, it isn't added to the query