added Ientity and a frame count