updated selection pattern