removed undefined index