Line number switch code added