get rid of "notice: undefined index"