added accounting for impressions