restoring selection