change first and last selectors