built has_many for statistics