fast implementation for non table mode