added frames counter