extracted fps logic to class; removed tripple class;