index error fixed 4