added select_from_trends_uint