changed line count implementations.