optimize the selector