top down implementation for low-level.