added select mode