updated selection to integer