added negative indexs to selection