2th version. Frame index