adding frame delay