select function initialized