index error fixed 5