optimized get()