improved initSelection