statistics: merge get and get_periods