the compacte version is not as fast as the simple model