changed getting frame from polling