update edit

removed Index error