added condense non exported function